<include file="Public/header" title="更新字段" />
<div id="page-wrapper">
    <form method="post" action="{:U('setting/update')}" enctype="multipart/form-data">
        <div class="form-group">
            <label for="aa">字段名</label>
            <input type="text" name="key" class="form-control" id="aa" value="{$model.key}" placeholder="key">
        </div>
        <div class="form-group">
            <label for="bb">字段值</label>
            <input type="text" name="value" class="form-control" id="bb" value="{$model.value}" placeholder="设置值">
            <!--<textarea name="value" id="bb" class="form-control"  cols="30" rows="10" placeholder="value">{$model.value}</textarea>-->
        </div>
        <div class="form-group">
            <label for="dd">小图标:不上传则不修改</label>
            <input type="file" name="img" class="form-control" id="dd" placeholder="设置值">
            <!--<textarea name="value" id="bb" class="form-control"  cols="30" rows="10" placeholder="value"></textarea>-->
        </div>
        <div class="form-group">
            <label for="cc">排序:( 数字 )</label>
            <input type="text" name="sort" class="form-control" id="cc" value="{$model.sort}" placeholder="排序值" >
        </div>

        <div class="form-group">
            <input type="hidden" name="id" value="{$model.id}">
            <button type="submit" class="btn btn-default">提交</button>
        </div>
    </form>
</div>
<include file="Public/footer" />